<template>
	<view>
		<view class="usercard">
			<uni-list :border="false">
				<uni-list-item style="background-color:#FFF2D2;border-radius: 12px;" :title="nickname" :note="uid" :thumb="avatar" thumb-size="lg" link to="login" class="top-list" :border="false"></uni-list-item>
			</uni-list>
		</view>
		
		
		<uni-list>
			<uni-list-item title="同学们(仅显示当前班级)" to="classmates" showArrow="true"></uni-list-item>
			<uni-list-item title="我的班级(在此切换班级)" to="classes" showArrow="true"></uni-list-item>
			<uni-list-item title="班级管理" to="classes" showArrow="true"></uni-list-item>
			<uni-list-item title="应用设置" to="system" showArrow="true"></uni-list-item>
			<uni-list-item title="使用文档" to="classes" showArrow="true"></uni-list-item>
			<uni-list-item title="账号设置" to="classes" showArrow="true"></uni-list-item>
			<uni-list-item title="后台管理" to="setting" showArrow="true"></uni-list-item>
		</uni-list>
	</view>
</template>

<script>
	
	export default {

		data() {
			return {
				nickname:"不断同学",
				uid:"uid：100001",
				avatar:"http://q1.qlogo.cn/g?b=qq&nk=2393982461&s=640"
			}
		},
		onLoad() {
			uni.getStorage({
				key:"token",
				success:function (res) {
					this.token = res.data
					
				},
				
			})
		},
		
		methods: {
			//登录（微信小程序）

		
		}
	}
	
</script>

<style>
	.usercard{
		background-color: #FFF2D2;
		margin:12px;
	}
	.top-list{

		}
</style>